<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"	
	xmlns:p="http://primefaces.org/ui" class="no-js">

	<ui:composition>	    
		<h:form id="createStatusForm">
			<p:growl id="statusGrowl" />          		
			<p:commandButton id="showAddStatus" icon="ui-icon-plus"
				type="button" onclick="newStatusDlg.show()" />          
		    <p:dialog id="newStatusDialog" header="#{i18n.newStatusLabel}" widgetVar="newStatusDlg" 
		    	dynamic="true" showEffect="clip" hideEffect="scale">					        
		        <h:panelGrid id="newStatusPanel" columns="1" styleClass="panel">					
					<h:inputText id="statusName" value="#{statusBean.status.name}"
						required="true" requiredMessage="#{i18n.requiredName}">
						<f:passThroughAttribute name="required" value="true" />
					</h:inputText>										
					<f:facet name="footer">
			            <h:panelGroup style="display:block; text-align:center">
			                <p:commandButton id="createStatusFormSubmit" action="#{statusBean.create}" value="#{i18n.submit}" 
			                	update="statusGrowl" oncomplete="newStatusDlg.hide()" />
			            </h:panelGroup>
			        </f:facet>				        	        			
				</h:panelGrid>		        
		    </p:dialog>			
		</h:form>	
	</ui:composition>
</html>